#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>
void reverseString(char* s, int sSize) {
    for (int left = 0, right = sSize - 1; left < right; left++, right--)
    {
        int t = s[left];
        s[left] = s[right];
        s[right] = t;
    }
}
int main()
{
    char s[250];
    gets(s);
    int len = strlen(s);
 reverseString(s, len);
    printf("%s", s);
	return 0;
}